﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.ComponentModel;

namespace Toolbox.Plugin.Controls
{
    public partial class PluginToolStripItem : ToolStripMenuItem
    {
        public PluginItem PluginItem { get; private set; }

        public PluginToolStripItem()
        {
            InitializeComponent();
        }

        public PluginToolStripItem(PluginItem pi)
            :  base(pi.Description, pi.Image, null, pi.ToString())
        {
            this.PluginItem = pi;
            InitializeComponent();
        }

        public PluginToolStripItem(PluginItem pi, EventHandler OnClick)
            : base(pi.Description, pi.Image, OnClick, pi.ToString())
        {
            this.PluginItem = pi;
            InitializeComponent();
        }
    }
}
